package com.haoze.nurseapp.enumeration;

/**
 * @author wangze
 * @date 2020-05-15 14:39.
 **/
public enum OralEnum {
	BY_NODE("807c8751fedb40109a516ee18f3e437b","待摆药","dispensing"),
	GY_NODE("f6d7065590a0448ebf1b8be91f1480ca","待给药","dose"),
	FY_NODE("6f305a461ec9495e8b0dccc68477e38b","待服药","take"),
	ZZ_NODE("da8365f7dcbc4a89962a4de037239366","终止节点","recovery"),
	JS_NODE("39bec841251043bb9a158c60d6223add","口服药结束","termination"),
	WC_NODE("39bec841251043bb9a158c60d6223add","口服药执行结束","finish"),
	ATOMIZE("77cab220c65f4c37ae127c7639790118","护理执行单类型-雾化单","1"),
	;
	private String value;
	private String name;
	private String type;

	private OralEnum(String name, String value,String type) {
		this.name = name;
		this.value = value;
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public static OralEnum getType(String dataTypeCode) {
		for (OralEnum enums : OralEnum.values()) {
			if (enums.type.equals(dataTypeCode)) {
				return enums;
			}
		}
		return null;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
